package com.ruoyi.swla2.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.swla2.mapper.RealtimeGatherDataMapper;
import com.ruoyi.swla2.domain.RealtimeGatherData;
import com.ruoyi.swla2.service.IRealtimeGatherDataService;

/**
 * 实时数据采集（大）Service业务层处理
 *
 * @author gdqt
 * @date 2023-09-05
 */
@Service
public class RealtimeGatherDataServiceImpl implements IRealtimeGatherDataService {
    @Autowired
    private RealtimeGatherDataMapper realtimegatherdataMapper;

    /**
     * 查询实时数据采集（大）
     *
     * @param tenantId 实时数据采集（大）主键
     * @return 实时数据采集（大）
     */
    @Override
    public RealtimeGatherData selectRealtimegatherdataByTenantId(String tenantId) {
        return realtimegatherdataMapper.selectRealtimegatherdataByTenantId(tenantId);
    }

    @Override
    public RealtimeGatherData selectRealtimegatherdataByTerminalId(String terminalId) {
        return realtimegatherdataMapper.selectRealtimegatherdataByTerminalId(terminalId);
    }

    /**
     * 查询实时数据采集（大）列表
     *
     * @param realtimegatherdata 实时数据采集（大）
     * @return 实时数据采集（大）
     */
    @Override
    public List<RealtimeGatherData> selectRealtimegatherdataList(RealtimeGatherData realtimegatherdata) {
        return realtimegatherdataMapper.selectRealtimegatherdataList(realtimegatherdata);
    }

    /**
     * 新增实时数据采集（大）
     *
     * @param realtimegatherdata 实时数据采集（大）
     * @return 结果
     */
    @Override
    public int insertRealtimegatherdata(RealtimeGatherData realtimegatherdata) {
        return realtimegatherdataMapper.insertRealtimegatherdata(realtimegatherdata);
    }

    /**
     * 修改实时数据采集（大）
     *
     * @param realtimegatherdata 实时数据采集（大）
     * @return 结果
     */
    @Override
    public int updateRealtimegatherdata(RealtimeGatherData realtimegatherdata) {
        return realtimegatherdataMapper.updateRealtimegatherdata(realtimegatherdata);
    }

    /**
     * 批量删除实时数据采集（大）
     *
     * @param tenantIds 需要删除的实时数据采集（大）主键
     * @return 结果
     */
    @Override
    public int deleteRealtimegatherdataByTenantIds(String[] tenantIds) {
        return realtimegatherdataMapper.deleteRealtimegatherdataByTenantIds(tenantIds);
    }

    /**
     * 删除实时数据采集（大）信息
     *
     * @param tenantId 实时数据采集（大）主键
     * @return 结果
     */
    @Override
    public int deleteRealtimegatherdataByTenantId(String tenantId) {
        return realtimegatherdataMapper.deleteRealtimegatherdataByTenantId(tenantId);
    }
}
